$(function () {
    var searchURL = window.location.search;  
searchURL = searchURL.substring(1, searchURL.length);  
var targetPageId = searchURL.split("&")[0].split("=")[1];    
    $.get('http://localhost:5000/api/article/getarticlelistbymid',{menuid:targetPageId}, function (data) {
        console.log(data)
        for (var i = 0; i < data.length; i++) {
        $("#section").append("<li id='" + data[i]["Id"] + "'><a id='" + data[i]["Id"] + "' href=# onclick=DealFun4(this.id);>" + data[i]["Title"] + "</a></li>");
        console.log(data.Title)}
    }
)})
function DealFun4(Id) 
 {
     var templateurl='services2.html'
 //    var trName=document.getElementById(data[i]["ParentId"]).innerText;
     var trId = templateurl + '?articleid=' + Id ;         
     open(trId)       
}
        